<?php

namespace Database\Factories;

use App\Models\PromoterLevel;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

class PromoterLevelFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = PromoterLevel::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'user_id' => $this->faker->numberBetween(1, 30),
            'promoter_id' => $this->faker->numberBetween(1, 30),
            'position' => $this->faker->text(10),
            'image' => $this->faker->randomElement([
                'http://placeimg.com/1920/400/any',
                'http://placeimg.com/1920/400/any',
                'http://placeimg.com/1920/400/any'
            ]),
            'level' => $this->faker->numberBetween(1, 6),
            'first_commission' => $this->faker->numberBetween(0, 30),
            'second_commission' => $this->faker->numberBetween(0, 30),
            'is_show' => $this->faker->randomElement([1, 2]),
        ];
    }
}
